package com.hhf.rpc.examplespringbootprovider.service;


import com.hhf.rpc.common.model.entity.User;
import com.hhf.rpc.common.service.UserService;
import com.hhf.rpc.feirpcspringbootstarter.annotation.RpcService;
import org.springframework.stereotype.Service;

/**
 * 用户服务实现类
 *
 */
@Service
@RpcService
public class UserServiceImpl implements UserService {

    @Override
    public String sayHello(User user) {

        String name = user.getName();
        String description = user.getDescription();
        String content = String.format("用户名: %s\t格言: %s", name, description);
        return content;
    }

}